﻿using BLL.YQZS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;

namespace YQFK.api
{
    /// <summary>
    /// 轨迹
    /// </summary>
    public class TrackController : ApiController
    {
        private readonly TrackBLL _trackBLL;

        public TrackController()
        {
            _trackBLL = new TrackBLL();
        }

        /// <summary>
        /// 删除轨迹
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task<IHttpActionResult> Delete(Guid id)
        {
            await _trackBLL.DeleteAsync(id);
            return Ok();
        }
    }
}
